package com.wlc.pojo;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 菜单实体类
 */
@Data
public class Menu {
    private Long id;
    private Long parentId;
    private String name;
    private Integer type; // 1-目录，2-菜单，3-按钮
    private String path;
    private String component;
    private String perms;
    private String icon;
    private Integer sort;
    private Integer isVisible;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    // 移除 isDeleted 字段

    // 树形结构字段
    private List<Menu> children;
    private String parentName;
}